#include <stdlib.h>
#include <uuid/uuid.h>

#include "des.h"

void *
inb_alloc(size_t size)
{
	return malloc(sizeof(Inb_des) + size);
}

Inb_des *
inb_des(void *ptr)
{
	return ((Inb_des *) ptr) - 1;
}

void *
inb_thing(Inb_des *des)
{
	return des + 1;
}

enum inb_type
inb_type(void *ptr)
{
	return inb_des(ptr)->type;
}


